
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>php基础 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="01_php介绍.html" />
    
    
    <link rel="prev" href="../../" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2" data-path="01_php介绍.html">
            
                <a href="01_php介绍.html">
            
                    
                    php基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="01_php介绍.html">
            
                <a href="01_php介绍.html">
            
                    
                    php介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="02_PHP基础语法.html">
            
                <a href="02_PHP基础语法.html">
            
                    
                    php基础语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="03_php变量.html">
            
                <a href="03_php变量.html">
            
                    
                    php变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="04_php数据类型.html">
            
                <a href="04_php数据类型.html">
            
                    
                    php数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="05_php常量.html">
            
                <a href="05_php常量.html">
            
                    
                    php常量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="06_php运算符.html">
            
                <a href="06_php运算符.html">
            
                    
                    php运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="07_php流程控制.html">
            
                <a href="07_php流程控制.html">
            
                    
                    php流程控制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="08_php数组.html">
            
                <a href="08_php数组.html">
            
                    
                    php数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="09_php函数.html">
            
                <a href="09_php函数.html">
            
                    
                    php函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="10_php面向对象.html">
            
                <a href="10_php面向对象.html">
            
                    
                    php面向对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="11_php命名空间.html">
            
                <a href="11_php命名空间.html">
            
                    
                    php命名空间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="12_php日期和时间.html">
            
                <a href="12_php日期和时间.html">
            
                    
                    php日期时间
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.13" data-path="13_php表单.html">
            
                <a href="13_php表单.html">
            
                    
                    php表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.14" data-path="14_php包含文件.html">
            
                <a href="14_php包含文件.html">
            
                    
                    php包含文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.15" data-path="15_php常用函数.html">
            
                <a href="15_php常用函数.html">
            
                    
                    php常用函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.16" data-path="../php高级/16_php常用变量函数.md">
            
                <span>
            
                    
                    php常用变量函数
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../php高级/01_php错误与异常.html">
            
                <a href="../php高级/01_php错误与异常.html">
            
                    
                    php错误与异常
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../php高级/02_PhpStorm本地断点调试.html">
            
                <a href="../php高级/02_PhpStorm本地断点调试.html">
            
                    
                    PhpStorm本地断点调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../php高级/03_php文件操作.html">
            
                <a href="../php高级/03_php文件操作.html">
            
                    
                    php文件操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../php高级/04_cookie机制.html">
            
                <a href="../php高级/04_cookie机制.html">
            
                    
                    cookie机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../php高级/05_session.html">
            
                <a href="../php高级/05_session.html">
            
                    
                    session
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../php高级/06_php画图.html">
            
                <a href="../php高级/06_php画图.html">
            
                    
                    php画图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../php高级/07_php加密机制.html">
            
                <a href="../php高级/07_php加密机制.html">
            
                    
                    php加密机制
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >php基础</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="php&#x7B80;&#x4ECB;">PHP&#x7B80;&#x4ECB;</h1>
<blockquote>
<p>PHP &#x662F;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x811A;&#x672C;&#x8BED;&#x8A00;&#x3002;</p>
</blockquote>
<h2 id="php&#x662F;&#x4EC0;&#x4E48;">PHP&#x662F;&#x4EC0;&#x4E48;?</h2>
<p>PHP(&#x5168;&#x79F0;:PHP:Hypertext Preprocessor,&#x5373;&quot;PHP:&#x8D85;&#x6587;&#x672C;&#x4E8E;&#x5904;&#x7406;&#x5668;&quot;)&#x662F;&#x4E00;&#x79CD;&#x901A;&#x7528;&#x5F00;&#x6E90;&#x811A;&#x672C;&#x8BED;&#x8A00;&#x3002;</p>
<p>PHP&#x811A;&#x672C;&#x5728;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x8FD0;&#x884C;&#x3002;</p>
<p>PHP&#x662F;&#x5F00;&#x6E90;&#x7684;&#x53EF;&#x514D;&#x8D39;&#x4E0B;&#x8F7D;&#x4F7F;&#x7528;&#x3002;</p>
<h2 id="php&#x6587;&#x4EF6;&#x662F;&#x4EC0;&#x4E48;">PHP&#x6587;&#x4EF6;&#x662F;&#x4EC0;&#x4E48;?</h2>
<ul>
<li>PHP&#x6587;&#x4EF6;&#x53EF;&#x5305;&#x542B;&#x6587;&#x672C;&#x3001;HTML&#x3001;Javascript&#x4EE3;&#x7801;&#x548C;PHP&#x4EE3;&#x7801;&#x3002;</li>
<li>PHP&#x4EE3;&#x7801;&#x5728;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x6267;&#x884C;&#xFF0C;&#x7ED3;&#x679C;&#x4EE5;&#x7EAF;HTML&#x5F62;&#x5F0F;&#x8FD4;&#x56DE;&#x7ED9;&#x6D4F;&#x89C8;&#x5668;&#x3002;</li>
<li>PHP&#x6587;&#x4EF6;&#x7684;&#x9ED8;&#x8BA4;&#x6587;&#x4EF6;&#x6269;&#x5C55;&#x540D;&#x662F;&quot;.php&quot;&#x3002;</li>
</ul>
<h2 id="php&#x80FD;&#x505A;&#x4EC0;&#x4E48;&#xFF1F;">PHP&#x80FD;&#x505A;&#x4EC0;&#x4E48;&#xFF1F;</h2>
<ul>
<li>PHP&#x53EF;&#x4EE5;&#x751F;&#x6210;&#x52A8;&#x6001;&#x9875;&#x9762;&#x5185;&#x5BB9;</li>
<li>PHP&#x53EF;&#x4EE5;&#x521B;&#x5EFA;&#x3001;&#x6253;&#x5F00;&#x3001;&#x8BFB;&#x53D6;&#x3001;&#x5199;&#x5165;&#x3001;&#x5173;&#x95ED;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x7684;&#x6587;&#x4EF6;</li>
<li>PHP&#x53EF;&#x4EE5;&#x6536;&#x96C6;&#x8868;&#x5355;&#x6570;&#x636E;</li>
<li>PHP&#x53EF;&#x4EE5;&#x53D1;&#x9001;&#x548C;&#x7ED3;&#x6784;cookies</li>
<li>PHP&#x53EF;&#x4EE5;&#x6DFB;&#x52A0;&#x3001;&#x5220;&#x9664;&#x3001;&#x4FEE;&#x6539;&#x60A8;&#x7684;&#x6570;&#x636E;&#x5E93;&#x4E2D;&#x7684;&#x6570;&#x636E;</li>
<li>PHP&#x53EF;&#x4EE5;&#x9650;&#x5236;&#x7528;&#x6237;&#x8BBF;&#x95EE;&#x60A8;&#x7684;&#x7F51;&#x7AD9;&#x4E0A;&#x7684;&#x4E00;&#x4E9B;&#x9875;&#x9762;</li>
<li>PHP&#x53EF;&#x4EE5;&#x52A0;&#x5BC6;&#x6570;&#x636E;</li>
</ul>
<p>&#x901A;&#x8FC7;PHP&#xFF0C;&#x4F60;&#x4E0D;&#x518D;&#x5C40;&#x9650;&#x4E8E;&#x8F93;&#x51FA;HTML&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x8F93;&#x51FA;&#x56FE;&#x50CF;&#x3001;PDF&#x6587;&#x4EF6;&#x3001;&#x751A;&#x81F3;Flash&#x7535;&#x5F71;&#x3002;&#x4F60;&#x8FD8;&#x53EF;&#x4EE5;&#x8F93;&#x51FA;&#x4EFB;&#x610F;&#x7684;&#x6587;&#x672C;&#xFF0C;&#x6BD4;&#x5982;XHTML&#x548C;XML&#x3002;</p>
<h2 id="&#x4E3A;&#x4EC0;&#x4E48;&#x4F7F;&#x7528;php">&#x4E3A;&#x4EC0;&#x4E48;&#x4F7F;&#x7528;PHP?</h2>
<ul>
<li>PHP&#x53EF;&#x4EE5;&#x5728;&#x4E0D;&#x540C;&#x7684;&#x5E73;&#x53F0;&#x4E0A;&#x8FD0;&#x884C;(Windows&#x3001;Linux&#x3001;Unix&#x3001;Mac OS X&#x7B49;)</li>
<li>PHP&#x4E0E;&#x76EE;&#x524D;&#x51E0;&#x4E4E;&#x6240;&#x6709;&#x7684;&#x6B63;&#x5728;&#x88AB;&#x4F7F;&#x7528;&#x7684;&#x670D;&#x52A1;&#x5668;&#x76F8;&#x517C;&#x5BB9;(Apache&#x3001;IIS&#x7B49;)</li>
<li>PHP&#x63D0;&#x4F9B;&#x4E86;&#x5E7F;&#x6CDB;&#x7684;&#x6570;&#x636E;&#x5E93;&#x652F;&#x6301;</li>
<li>PHP&#x662F;&#x514D;&#x8D39;&#x7684;&#xFF0C;&#x53EF;&#x4EE5;&#x4ECE;&#x5B98;&#x65B9;&#x7684;PHP&#x8D44;&#x6E90;&#x4E0B;&#x8F7D;&#x5B83; <a href="http://www.php.net/" target="_blank">http://www.php.net</a></li>
<li>PHP&#x6613;&#x4E8E;&#x5B66;&#x4E60;&#xFF0C;&#x5E76;&#x53EF;&#x9AD8;&#x6548;&#x5730;&#x8FD0;&#x884C;&#x5728;&#x670D;&#x52A1;&#x5668;&#x7AEF;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../../" class="navigation navigation-prev " aria-label="Previous page: 前言">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="01_php介绍.html" class="navigation navigation-next " aria-label="Next page: php介绍">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"php基础","level":"1.2","depth":1,"next":{"title":"php介绍","level":"1.2.1","depth":2,"path":"php/php基础/01_php介绍.md","ref":"./php/php基础/01_php介绍.md","articles":[]},"previous":{"title":"前言","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"php/php基础/01_php介绍.md","mtime":"2020-04-23T09:59:52.381Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-23T11:06:38.883Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

